package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the WcClainParty entity.
 */
public class WcClainPartyDTO implements Serializable {

    private Long id;

    private String profilePicture;

    private String name;

    private String caseInfo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProfilePicture() {
        return profilePicture;
    }

    public void setProfilePicture(String profilePicture) {
        this.profilePicture = profilePicture;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCaseInfo() {
        return caseInfo;
    }

    public void setCaseInfo(String caseInfo) {
        this.caseInfo = caseInfo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        WcClainPartyDTO wcClainPartyDTO = (WcClainPartyDTO) o;
        if(wcClainPartyDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), wcClainPartyDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "WcClainPartyDTO{" +
            "id=" + getId() +
            ", profilePicture='" + getProfilePicture() + "'" +
            ", name='" + getName() + "'" +
            ", caseInfo='" + getCaseInfo() + "'" +
            "}";
    }
}
